- Add page visibility change detection with debounced state handling - Implement visibility listener for managing background task behavior - Add comprehensive tests for debouncing and visibility transitions - Resolve type conflicts in types.ts and SettingsModal.tsx