Ammonia for killing pests in 15th century France

So I recently finished reading a book on Joan of Arc. It was really interesting and well-written. Here’s the link if you’re curious. But here’s a question for you IPM experts.

The author states that latrine rooms were just closets with a hole that went down into a cess pit. Because it was just a hole, the room became filled with ammonia gas and got called a “garde-robe” because visitors would have their cloaks hung there as it was believed the ammonia “killed the vermin”.

My question is - does it? (I’m tempted to say yes?) If we assume that this is a closed space, maybe with some stone walls on 3 sides, maybe just wood. And visitors could stay anywhere between a few hours to several weeks (excellent medieval social practices) - would you say this would work - I guess on months, fleas, and lice? And how would intense quantities of ammonia gas affect the cloaks? I’m guessing they are composed of leather, wool, maybe metal clasps and thread, perhaps the occasional silk - glad to hear more if we have any medieval textile specialists here! And ammonia is crazy alkaline, so… what are we looking at here? 🤔