You're actually doing it in exactly the correct way. It's much better to just do x:headerLeftWidth than to do:
transform: "translateX(" + headerRightWidth + ")"
...because when you use the GSAP shortcuts like x, y, rotation, scaleX, scaleY, etc., it allows GSAP to avoid re-parsing the matrix from the browser, plus it's more accurate for any rotational values beyond 180 degrees (matrix decomposition is inherently ambiguous when it comes to rotational values).
Happy tweening!