Sealed storage containers with desiccant packs are really your best friend here, especially if your closet temperature swings a lot or gets humid. The silica gel packets are cheap and do the heavy lifting - just make sure you're replacing or recharging them regularly. I kept some old gear in a plastic bin with packets for about two years and opened it up to find everything in perfect shape, whereas stuff I'd left loose in the back of a closet started developing fungus on the lens elements.
Beyond the container itself, definitely pull those batteries out first. This is the thing that catches people off guard. Even decent batteries can start leaking after months of sitting, and once corrosion sets in on the contacts, you're looking at expensive repairs or replacement parts. Store the batteries separately in a cool place - you don't need anything fancy, just get them away from the gear. Also, if it's a climate-controlled spot in your house, that's ideal, but honestly even a bedroom closet with relatively stable temps beats a garage or attic where things get wild.
One last thing: crack open the containers every six months or so just to let them breathe and check that the silica packets are still working (they'll look darker when saturated). You don't need to do anything with the gear itself, just a visual inspection and a swap of the desiccant keeps everything dormant and ready to go if you ever want to use it again.