Doesn't planes have automated extinguishers in the cargo hull? I actually don't know, but it is something I would assume.
The best lay-person's method for extinguishing battery fires is flooding with cold water, which will be hard on an airplane at the best of times.