If setting up Nightwatch in an existing TS project, we need to create the tsconfig.json file that Nightwatch will use inside the nightwatch folder, in the project root.
The nightwatch folder will host other nightwatch related items. The structure will look like so:
nightwatch/
|-- examples/
|-- pages/
|-- commands/
|-- assertions/
|-- globals.ts
|-- tsconfig.json
Since v2.3, the Nightwatch runner will automatically register ts-node using the nightwatch/tsconfig.json config file which will make it possible to run .ts files without tsc. See https://github.com/nightwatchjs/nightwatch/blob/main/bin/runner.js#L9