Just writing code uses almost no energy. Your PC should be clocking down when you're not doing anything. 1GHz is plenty for text editing.
Does ChatGPT (or whatever LLM you use) reduce the number of times you hit build? Because that's where all the electricity goes.