Cancel any pending restart, detach process and stdin handlers, and stop Electron.
Calling close more than once returns the same promise.
Schedule a debounced restart using the latest bundle output location.
Repeated calls within debounceMs replace the pending restart.
Rollup-compatible output location containing the Electron entry file.
Optionalreason: string
Label included in the restart log. Defaults to "rebuild".
Controls the Electron process managed by createElectronRunner.