Adding a Privacy policy

My addon got removed as didn’t have privacy policy

Trying to add sample code here

Added this to addon stop it working not sure what i am doing wrong

    const url = browser.runtime.getURL("views/installed.html");
    browser.tabs.create({ url });

Anyone that could help would be appricated

Thanks in advance

Are you asking one question or two here?