Mothballs seem to be obsolete, because of their old-lady odor and some possible carcinogenicity.
Cedar seems to deter these bugs to some extent, but only if fresh or freshly-sanded. "Deters," not eliminates. There are moth trap things on Amazon. I do not know whether they can eliminate moths
Wool is what their larvae like to eat, plus spills in the kitchen pantry.
What do our readers do?