import typing


async def pagify_commands(coms: typing.List[str]) -> typing.List[str]:
    """Takes a list of command names and returns a pagified list

    It will return a page of 15 commands

    Parameters
    ----------
    coms: List[:class:`str`]
        The list of commands to iterate over

    Returns
    -------
    :class:`list`
        A list of pagified commands
    """
    ret = []
    combine = ""
    for i, command in enumerate(coms):
        i += 1
        combine += f"\n{command}"
        if i % 15 == 0:
            ret.append(combine)
            combine = ""
    if combine:
        ret.append(combine)
    return ret