def window_json
import cswap-bend-cli@0.1.0.0/view.bend as Viewimport Base
import cswap-bend-cli@0.1.0.0/json.bend as Json
189# A 5h window: pct, resetsAt and the fresh countdown and clock.
190def window_json(+w: Json.Json, +now: U32, +off: U32) -> Json.Json:
191 with_cell(reset_field(w, Json.of_pairs([("pct", jv("pct", w))])), fresh(w, now, off))