MCPcopy Create free account
hub / github.com/Useful-Scripts-Extension/useful-script / getCurrentTabId

Function getCurrentTabId

scripts/helpers/utils.js:306–308  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

304};
305
306export const getCurrentTabId = async () => {
307 return (await getCurrentTab())?.id;
308};
309
310export const getCurrentTabUrl = async () => {
311 return (await getCurrentTab())?.url;

Callers

nothing calls this directly

Calls 1

getCurrentTabFunction · 0.70

Tested by

no test coverage detected