import type { CachedTasks , State } from "../../common/state" ; export function clearCachedTasks ( ) { const emptyState = { tasks : [ ] , taskFetchFailureReason : null , tasksLastCompletedFetchTimestamp : null , tasksLastInitiatedFetchTimestamp : null , } ; return browser . storage . local . set < Partial < State > > ( emptyState ) ; }