### Description: Add detailed comments and function descriptions for each function in the `background.js` file to improve readability and maintainability. ### Files Involved: `background.js` ### Expected Outcome: All functions in `background.js` should have descriptive comments and function headers.