javascript – my chrome “sleep” extension does not seem to run


im very new to javascript and chrome extensions, and fairly new to programming at all.

my manifest.json :

{
    "name": "GetUp aSec",
    "version": "1.0",
    "description": "Be healthy, get up!",
    "manifest_version": 2,
    "content_scripts": (
        {
            "matches": (
                "<all_urls>"
            ),
            "js": (
                "content.js"
            )
        }
    ),
    "browser_action": {
        "default_popup": "popup.html",
        "default_icon": "icon.png"
    },
    "background": {
        "scripts": (
            "background.js"
        )
    }
}

my background.js is a function i found online that was promised to run smoother than normal sleep functions
then it sends a message, every 52 minutes.

function sleep(ms) {
    return new Promise(resolve => setTimeout(resolve, ms));
}

while (true) {
    sleep(52000 * 60).then(() => {
        chrome.tabs.query({ currentWindow: true, active: true },
            function (tabs) {
                chrome.tabs.sendMessage(tabs(0).id, 'its been 52 minutes! you should take a break.')
            })
    });
}

my content.js is just a listener that would hopefully alert the message.

chrome.runtime.onMessage.addListener(function (request) {
    alert(request)
})

when i add it to chrome, it doesnt give me any errors, but it also does not do anything. any help??