How would you implement a Shrinking Ray ability?

This shouldn’t be an offensive ability but a utility option that the user casts on themselves.