I think that Class D is for a metallic lithium fire rather than a Lithium-ion fire. Primary batteries (non-rechargeable like coin cells) can fall into the metallic lithium category.
From this site, BC or ABC for Li-ion.
https://firefighterinsider.com/the-b...ion-batteries/
But, you need to be careful. The gases from a Li-ion fire are toxic, and they are not easy to put out. Battery storage areas have sprinklers with lots of water, but they are really just trying to minimize spread rather than counting on putting the fire out.
Another good site is this one
https://batteryuniversity.com/articl...ns-with-li-ion