from typing import List


def remove_comments(lines: List[str]) -> List[str]:
    """Remove comments and empty lines"""
    formatlines = []
    for line in lines:
        # comment
        if "//" in line:
            formatlines.append(line[:line.index("//")].strip())
        # ignore blank lines
        elif line:
            formatlines.append(line)
    return formatlines