Const tabsProxy
tabsProxy: any = new Proxy(Object.create(null), {get(target, p) {const id = Number(p)if (typeof id === "number" && isFinite(id)) {// We're accessing tabs[i] - meaning that we should return a proxy// for a single tabreturn tabProxy(id, [])}if (typeof p === "string") {// If `p` is a string, then we return a proxy with a sentinel value// indicating that the request should be sent to all tabs instead.return tabProxy(allTabs, [])[p]}throw new Error(`'tabs' object can only be accessed by a number (e.g. tabs[3]) or a string (e.g. tabs.document or tabs['document']). Type of accessor: "${typeof p}"`)},})