Note defineConfig is used to export configuration for the consumption by turbowatch program. If you want to run Turbowatch programmatically, then use watch. The API of both methods is equivalent.
Obsidian Advanced New file is a plugin for Obsidian, that provide functionality to choose folder over note creation. The new note file is created with Untitled.md filename just to provide same ...