import textwrap


def wrap_message(message: str, chars_in_line: int = 80) -> str:
    """Wrap a block of text to a certain amount of characters

    :param message:
    :param chars_in_line: The width to wrap against

    :returns: the wrapped message
    """
    return_text = []
    for paragraph in message.split('\n'):
        lines = textwrap.wrap(paragraph, chars_in_line)
        if not lines:
            return_text.append('')
        else:
            return_text.extend(lines)
    return '\n'.join(return_text)