Had to look up how to do that, as apparently the docs don't have that kind of information. I did come across this SO question. So, the solution would be:
#anchor.gd
class_name Anchor
var offset: Vector3
var connected: Node3D
var end: bool
And that would create this new, readily accessible class throughout the project, correct?