I am hesitant to use plain JS on web applications now that I've been using Typescript for so long. I would feel even more hesitant to write fast and loose JS on a microcontroller
Typescript compiles to js. Presumably you could have a typescript layer for this - but at that point it seems like your time would be better spent translating typescript to a compiled language than going ts -> js -> interpreter