You can resolve this by extending the Window interface to include cookieStore. Create a declaration file (e.g., window.d.ts) and add declare global { interface Window { cookieStore: CookieStore; } }. This will let TypeScript recognize the API and compile correctly.