chrome.runtime.onMessage.addListener((request, sender, sendResponse) => { chrome.cookies .get({ url: "https://tiktok.com", name: "msToken", }) .then((cookie) => { sendResponse(cookie.value); }); return true; });