fix(client-state): type global_set as the FunctionVar it returns

BE
3h ago
+4-5

ClientStateVar.global_set returns a FunctionVar (.to(FunctionVar)), but it was annotated -> Var. Calling the setter therefore needed a second cast to type-check:

shared.global_set.call("from-plain-js")                   # pyright: Cannot access attribute "call" for class "Var[Unknown]"
shared.global_set.to(FunctionVar).call("from-plain-js")   # what callers had to write

The annotation is now -> FunctionVar. The client state playwright app called the setter with the extra .to(FunctionVar); it now calls .call(...) directly, which pyright rejects without the new annotation. No runtime change.