def remove_commas_number_string(number_string: str) -> int:
    """
    Returns an integer from a string representing a number with commas.

    >>> number = "56,987"
    >>> remove_commas_number_string(number)
    56987
    """
    formatted_number = number_string.replace(',', '')
    formatted_number = formatted_number.replace(' ', '')

    return int(formatted_number)