"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.minutesFromNow = exports.parseWindowMinutes = void 0;
const parseWindowMinutes = (window, fallbackMinutes = 30) => {
    const match = window.match(/(\d+)\s*minute/i);
    return match ? Number(match[1]) : fallbackMinutes;
};
exports.parseWindowMinutes = parseWindowMinutes;
const minutesFromNow = (minutes) => new Date(Date.now() + minutes * 60_000);
exports.minutesFromNow = minutesFromNow;
