extensions/typescript-language-features/src/utils/platform.ts/isWeb
export function isWeb(): boolean {
	// @ts-expect-error
	return typeof navigator !== 'undefined' && vscode.env.uiKind === vscode.UIKind.Web;
}