Are they meal moths? Those are awful, and so hard to get rid of. But it is possible! Clean absolutely every inch of every cupboard, transfer everything to good containers* and kill every one you see, and do it again & again & again for about six weeks. Also put a pheremone trap in your pantry which will attract & kill the males which will interrupt the breeding cycle, and hopefully help you eliminate the infestation. And, just a BTDT note, if your kid brings a moth in from outside, don't ask what it looks like, because the kid will open their hands to look and/or show you and the moth will fly away into your cupboard and make baby moths. The correct answer is, "Let's take it back outside to have a look at it," and then kill it if it is a meal moth. I'm not fond of killing most living things but I get great satisfaction out of stomping meal moths. They are horrible creatures.
* I discovered that many things that we thing of as airtight are NOT and meal moth larvae can get through amazingly tiny spaces. "Ziplock" bags can have a tiny gap at the end of the zipper. Test yours first by leaving them lying around full of water and check for water leaking out after a few hours. I found the cheap store brand works better than the name brand with the fancy zipper. Same thing with glass jars; I had to put waxed paper between the jar & lid. The snap-top plastic containers were good. Anything in a box, make sure it has sealed plastic bag inside, or transfer to a different container.
I have had those Moths before and I agree they are hard to get rid of, it takes awhile. Sometimes even plastic that looks sealed somehow they eat through a little corner and get in.
We've had the traps in there for a while, we replace them regularly. It's so frustrating! I guess July 4th weekend will give us time for another pantry-cleaning.
Besides pesticides.. try cedar and flouresant lights.