MCPcopy Create free account
hub / github.com/violentmonkey/violentmonkey / TabClose

Function TabClose

src/injected/content/tabs.js:16–22  ·  view source on GitHub ↗
(key)

Source from the content-addressed store, hash-verified

14 realms[id] = realm;
15 },
16 async TabClose(key) {
17 await bridge[REIFY];
18 const id = tabIds[key];
19 // !key => close current tab
20 // id => close tab by id
21 if (!key || id) sendCmd('TabClose', { id });
22 },
23});
24
25addBackgroundHandlers({

Callers

nothing calls this directly

Calls 1

sendCmdFunction · 0.90

Tested by

no test coverage detected