k6 should automatically decompress bodies if the correct Content-encoding is supplied if that isn’t enough you will need to write an extension to do it for you.
Apparently also pako has worked somewhat in the past with some issues, goja (the JS VM k6 uses) has come a long way since then so it’s possible even more stuff are working now