Use the chrome.alarms module to schedule code to run periodically or at a specified time in the future.