Hard to say, but for modern batteries, everything I’ve read says cold is preferable to heat and cooler temperatures extend their life significantly. You’re even supposed to store long-term batteries in the fridge for best life!
Not sure about old-school alkaline batteries, but the same rules seem to apply. Heating a battery doesn’t sound like good advice.
Perhaps someone with more of an electronics or chemistry background can chime in for sure?