An octagonal number is a figurate number that represents an octagon. The formula to calculate the nth octagonal number is given by:
\[ O_n = 3n^2 - 2n \]
Write a Python function `nth_octagonal_number(n: int) -> int` that takes an integer `n` and returns the nth octagonal number.
#### Example Usage
```python [main.nopy]
print(nth_octagonal_number(1)) # Output: 1
print(nth_octagonal_number(5)) # Output: 65
print(nth_octagonal_number(10)) # Output: 280
```
#### Constraints
- The input `n` will be a positive integer.
- The function should return the result as an integer.