from typing import List
from textwrap import dedent


def _format_tweet_message(tweet_list: List[str], hashtags: str) -> List[str]:
    """
    Format tweets as desired. This function should be fairly flexible
    and really only require that you be mindful of the tweet padding constants
    when attempting to make changes to the formatting of any tweets you wish to
    send.
    """
    return_list: List[str] = []
    for index, sub_tweet in enumerate(tweet_list):
        # If this is the first tweet add hashtags
        if index == 0:
            return_list.append(
                dedent(
                    f"""
                {sub_tweet}

                {hashtags}
                """
                )
            )
        else:
            return_list.append(sub_tweet)
    return return_list