def cost_part1(crabs: list[int], target: int) -> int:
    """
    Calculates the total fuel that would be required for all crabs to move to
    the given position if the assumption from part 1 was true
    """
    return sum(abs(target - crab) for crab in crabs)