def binary_string_to_int(binary_string: str) -> int:
    """
    Converts a binary string to an integer.
    """
    if isinstance(binary_string, str):
        return int(binary_string, 2)
    elif isinstance(binary_string, list):
        return int(''.join(binary_string), 2)