Your configuration of Typescript depends on what your target JS environment is. See github.com/tsconfig/bases for list of examples for various targets, e.g. Node 16.