from typing import IO


def read_vcf_header(file: IO):
    """Read a vcf header. Resets pointer to 0"""
    out = []
    for line in file:
        if line.startswith("#"):
            out.append(line)
        else:
            break

    file.seek(0)
    return out