from typing import List


def close_gap_to_1(prev_vals: List[float], fraction: float) -> float:
    """
    Reduce the difference between the last value and one (full mobility) according to the "fraction" request.

    """

    prev_val = prev_vals[-1]
    return (1.0 - prev_val) * fraction + prev_val