static @NotNull Duration duration(final long ticks) {
    return Duration.ofMillis(ticks * SINGLE_TICK_DURATION_MS);
  }
Converts ticks into a {@link Duration}.

@param ticks the number of ticks
@return a duration
@since 4.0.0
api/src/main/java/net/kyori/adventure/util/Ticks.java