import type { DevTask } from './dev-task';

export function needsDelayReason(task: DevTask, now: Date = new Date()): boolean {
  if (task.status !== 'todo' || !task.expectedEndAt) return false;
  return now.getTime() > new Date(task.expectedEndAt).getTime();
}
