```typescript
/**
 * Returns the lowercased addresses of the active users, in input order.
 */
export function activeEmails(users: readonly { email: string; active: boolean }[]): string[] {
  return users.filter(user => user.active).map(u => u.email.toLowerCase());
}
```