Burning lithium and other exotic metals are class D fires. They are extraordinarily difficult to extinguish. They burn hot enough to break down water into oxygen and hydrogen. Mainly you let them burn themselves out and try to prevent them from spreading to other more traditionally combustible materials.