import { storage } from '@wxt-dev/storage' export interface SelectedTextData { text: string pageUrl: string pageTitle: string tabId: number timestamp: number } /** Map of tabId → selected text. Each tab's selection is independent. */ export const selectedTextStorage = storage.defineItem< Record >('local:selectedTextMap', { defaultValue: {} })