They actually make container for vehicles now. They had them at the American tow towman show last year.
https://evfirebox.com/
Scroll down the page a bit to see it.
There are high temp blankets, and a variety of chemical extinguisher agents that will work too. Just very expensive to use.
I'm not sure why you would keep a bettery undergoing thermal runaway in side any building,
however the hydrogen gas is the least of your worries as far as what they give off.
Should be more worried about the fluoride, cyanide, sulfur dioxide, and chloride gasses. The hydrogen will be burned rather quickly the others will kill you without knowing it and from a relatively low concentration.
Since 99% of people don't have any of the expensive chemical agents, removing the heat from the thermal runaway is still the best and most practical method of cooling the battery and depleting the stored energy.