Pre-task banner that compares battery runway (to a safety reserve, from the Battery Status API or a measured drain rate) with the task's length, shows where the battery would cut it off, and offers "Start when plugged in". Stays silent when the task will finish anyway.
npx shadcn@latest add @bollard/low-battery-guardlow-battery-guard