I am using this code for the Chrome extension to get the window's width in the background script
chrome.windows.getCurrent(function (wind) {
const w = wind.width;
});
but that sizes the entire window. If I have open and nested the devtools, it will be inside that window. How can I instead get the size of only the website's width?