• Synchronizes application theme with localStorage preference Called at application startup to restore user preference If no preference is stored, defaults to system theme

    Returns Promise<void>

    Promise resolving when theme synchronization is complete

    export async function syncThemeWithLocal(): Promise<void> {
    const { local } = await getCurrentTheme();
    if (!local) {
    setTheme("system");
    return;
    }

    await setTheme(local);
    }