Currently, I believe our compiled version is on 3.8. There's more information on why in
https://github.com/pulumi/pulumi/issues/4876.
We technically support any version of TypeScript that you'd like that compiles down to a supported Node.js version, but our built-in automatic compilation has a fixed version it supports, namely 3.8.