Adding a Privacy policy

My addon got removed as didn’t have privacy policy

Trying to add sample code here https://extensionworkshop.com/documentation/develop/onboard-upboard-offboard-users/?fbclid=IwAR2B3sA4Zi8Gc0Myw9HkIPRYz9pVclF4xpUPI3IsEbS_ZfYtEmC59eLrL5A

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
Keith

Are you asking one question or two here?