You can extend js-debug functionality by using its provided Extension API. To use it, you must first download the typings from the repository to your source tree to ensure type safety.
To access the API in your extension, locate the ms-vscode.js-debug-nightly or ms-vscode.js-debug extension, activate it, and then access its exports as IExports from the @vscode/js-debug package.
const jsDebugExt = vscode.extensions.getExtension('ms-vscode.js-debug-nightly') || vscode.extensions.getExtension('ms-vscode.js-debug');
await jsDebugExt.activate()
const jsDebug: import('@vscode/js-debug').IExports = jsDebugExt.exports;