Fire safety often starts with using a fire extinguisher. Using the right fire extinguisher for electrical fires is necessary for avoiding further problems.
https://www.creativesafetysupply.com/qa/fire-safety/which-fire-extinguisher-is-used-for-electrical-fire