Current Artboard

How can I get the art board of the currently selected layer?

You could probably do something like this:

const layer = app.activeDocument.activeLayers[0];

This will get you the current layer. Then, walk up the tree of layers using layer.parent until you end up with a layer that has a “null” parent.
It’ll look something like this, if you’re debugging with the UXP Developer Tool.