```python
def batch_ends(count: int, size: int) -> list:
    """The position of the last entry of each full batch."""
    if size <= 0:
        raise ValueError("size must be positive")
    ends = []
    start = 0
    while start + size <= count:
        ends.append(start + size - 1)
        start += size
    return ends
```