Could anyone tell me how to make the pretty sort of transparent borders like on this icon: ?

Step-by-step, please.

The only way I know how to make lines is with the line tool, which always turns out craptastic and never as smooth as those sort of lines.

I use PS 6. Thank you!