The alerts; those without an unseen drop are left alone
Resolves once they are updated
await markDropsSeen(alerts);
export async function markDropsSeen(alerts: readonly PriceAlert[]): Promise<void> {
await Promise.all(
getUnseenDrops(alerts).map(({ id }) => updatePriceAlert(id, { hasUnseenDrop: false })),
);
}
Marks products' latest drops as seen, so the badge stops counting them.