def join_urls(*urls) -> str:
    """Join multiple URL fragments together.

    Args:
        urls (List[str]): List of URL fragments to join

    Returns:
        str: URL joining result
    """
    if len(urls) == 0:
        raise ValueError('No URLs to join')

    leading = '\\' if urls[0][0] == '\\' else ''
    trailing = '\\' if urls[-1][-1] == '\\' else ''

    return leading + ('/'.join(u.strip('/') for u in urls)) + trailing