如何将全局变量添加到vscode?

How to add global variable to vscode?

我正在开发 Chrome 扩展程序,如果我写

会收到错误消息
chrome.storage.sync.set({key: value}, function() {
  console.log('Value is set to ' + value);
});

因为 vscode 不知道它在这个特定环境中可用。我在哪里可以将其设置为 windowdocument 等...?

使用以下内容创建文件jsconfig.json

{"typeAcquisition": {"include": ["chrome"]}}