--- interface Props { date: Date; years: number[]; months: number[]; days?: number[]; } const { date, years, months, days } = Astro.props; const y = date.getFullYear(); const m = date.getMonth() + 1; const d = date.getDate(); let yI = 0; let mI = 0; let dI = 0; const list = new Intl.ListFormat("pt-PT", { type: "unit", style: "narrow" }); const pad = (n: number) => String(n).padStart(2, "0"); ---