```ts
export function swipeDedupe(swipes: string[]): string[] {
  if (swipes.length === 0) return [];

  const deduped: string[] = [swipes[0]];
  for (let i = 1; i < swipes.length; i++) {
    if (swipes[i] !== deduped[deduped.length - 1]) {
      deduped.push(swipes[i]);
    }
  }
  return deduped;
}
```