@WebStormIDE Sure, the Standalone Server
(tsserver)
https://github.com/microsoft/TypeScript/wiki/Standalone-Server-(tsserver) has
a format command:
https://github.com/microsoft/TypeScript/blob/d45c54572b8e8482614b98928088218021dff76c/lib/protocol.d.ts#L1317-L1327