Hm, it's not that difficult in the end, at least on land.
First part is checking whether the battery pack is affected after all. Not all EV car fires lead to problems with the battery pack and sometimes you can just extinguish the fire like any other.
We check the battery by inspecting it with thermal cameras (remove any protection on the bottom of the car first - not easy). If the temperature of the pack rises after the initial fire has been put out, the battery pack seems to have a problem.
In that case, permanent cooling is the way to go. You will start doing this by sprinkling the battery with a hose to keep temperatures stable. At some point, you'll want to release the personell and need a more permanent solution.
That's where troughs come in to play. You will fill that up with water until you can completely submerge the battery pack in water. Either place the car in first or lift it in afterwards, that doesn't matter, it's just a handling thing. The car stays in there for several days until the chain reaction in the battery has stopped.
I can see how this might be somewhat more complicated on a ship in the middle of nowhere, but you wouldn't want to have a burnt-out non-EV car standing on your ship for an extended period of time, too. So you'll have to reach shore quickly anyway and get more help.