Change document to 16 bit

Is it possible to change the image mode of a doc from 8bit to 16 ?

:thinking: Do you mean programmatically through the APIs or just like, generally?

programmatically using the uxp api.

Does Adobe XD have 8-bit mode? Or are you talking about Photoshop?