I haven't tried that but so are you saying I could basically code in JavaScript and then ask Claude to turn it into TypeScript?

Yeah, I've done it with JS, but more often with Python.