Use the type of foam the airport fire fighters use?
It would work for smothering the fire but the fire itself produces its own fuel and oxidizer so it is self sustaining no MATTER WHAT. An EV drove into a lake the other day and there it sat submerged on the boat ramp burning as you could see the flames on top of the water. An entire lake of water cannot extinguish an EV fire.
Aqueous Film-forming Foam is designed to suppress and extinguish petroleum fuel fires.
“Use the type of foam the airport fire fighters use?”
Yes, but few fire departments have it, it’s expensive. They usually bury the cars for a week in police impound lots and hope for the best. Most of the time that works, but not always.