Switch to .mts files and build typescript bindings in genbindings.sh