# Remove Duplicates from Sorted Array

Given a sorted integer array, remove the duplicates in-place and return the new array with unique elements only.

## Function Signature

```python
def remove_duplicates(nums: list[int]) -> list[int]:
```

## Parameters
- `nums` — a sorted list of integers

## Returns
- A new list with duplicates removed, maintaining sorted order

## Examples

```
remove_duplicates([1,1,2]) -> [1,2]
remove_duplicates([0,0,1,1,1,2,2,3,3,4]) -> [0,1,2,3,4]
remove_duplicates([]) -> []
```
