Comment by rubymamis
TypeScript transpile to Javascript - do you really want your operating system's shell written in slow ass Javascript? Modern C++ with hardening rules for the compiler[1] is pretty safe.
[1] https://best.openssf.org/Compiler-Hardening-Guides/Compiler-...